package com.hgyc.mom.mes.enums;

/**
 * sop文档状态字典类
 * 自动生成的枚举类，请勿手动修改

 * @author fwj
 * @date 2025-06-27 15:57:27
 * @version 1.0
 **/
public enum SopDocumentStatusEnum {
    CREATED("created", "创建"),
    ERROR("error", "异常"),
    PUBLISHED("published", "发布")
    ;

    private final String value;
    private final String label;

    SopDocumentStatusEnum(String value, String label) {
        this.value = value;
        this.label = label;
    }

    public String getValue() {
        return this.value;
    }

    public String getLabel() {
        return this.label;
    }

    public static SopDocumentStatusEnum of(String value) {
        if (value == null) {
            return null;
        }
        for (SopDocumentStatusEnum item : SopDocumentStatusEnum.values()) {
            if (item.value.equals(value)) {
                return item;
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return this.label;
    }
}

